package jpaperwork.meta.transformer.path;

import jpaperwork.meta.descriptor.Polymorphism;
import jpaperwork.meta.descriptor.DiscriminatedType;

/**
 * User: fleipold
 * Date: Jul 3, 2009
 * Time: 12:18:05 AM
 */
public class PolymorhicPath implements PathElement{
    final Polymorphism polymorhism;
    final DiscriminatedType actualType;

    public PolymorhicPath(Polymorphism polymorhism, DiscriminatedType actualType) {
        this.actualType = actualType;
        this.polymorhism = polymorhism;
    }

    public DiscriminatedType getActualType() {
        return actualType;
    }

    public Polymorphism getPolymorhism() {
        return polymorhism;
    }
}
